package com.rslai.base.tool.servertest.config;

import com.rslai.base.tool.servertest.annotation.Property;
import com.rslai.base.tool.servertest.command.DbAssertStepCommand;
import com.rslai.base.tool.servertest.command.StepCommand;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Deprecated
public class DbAssertStepConfig extends StepConfig {
    private static final Logger logger = LoggerFactory.getLogger(DbAssertStepConfig.class);

    @Property
    String sql;

    @Property
    String expect;

    public StepCommand createCommand() {
        logger.warn("<dbassert>已不推荐使用，请使用<sql> + <assert>替代");
        return new DbAssertStepCommand(this.sql, this.expect);
    }
}
